package com.多用户通讯编程.QQ.Server.QQservice;


import com.多用户通讯编程.QQ.Common.User;

import java.util.HashMap;

public class ManageServerConnectClientThread {
    

    private static HashMap<String , ServerConnectClientThread> map = new HashMap<>();

    /// 返回map
    public static HashMap<String, ServerConnectClientThread> getMap() {
        return map;
    }
    /// 添加
    public static  void put(String UserId ,ServerConnectClientThread serverConnectClientThread){
        map.put(UserId ,serverConnectClientThread );
    }

    /// 通过用户获取对应线程；
    public static  ServerConnectClientThread get(String UserId){
        return map.get(UserId);

    }
    /// 删除
    public static  void remove(String UserId){
        map.remove(UserId);

    }

}
